/**
 * ITmCustomDao.java
 * Created at 2017-2-8
 * Created by xieshuang
 * Copyright (C) 2017 BROADTEXT SOFTWARE, All rights reserved.
 */
package com.broadtext.rms.basic.dao;

import java.util.Map;

import com.broadtext.common.bean.EntityPageBean;
import com.broadtext.common.exp.DaoException;
import com.broadtext.rms.basic.model.TmCustom;
import com.github.miemiedev.mybatis.paginator.domain.PageBounds;

/**
 * <p>ClassName: ITmCustomDao</p>
 * <p>Description: 客户dao层接口</p>
 * <p>Author: xieshuang</p>
 * <p>Date: 2017-2-8</p>
 */
public interface ITmCustomDao {
    /**
     * 
     * <p>Description: 查询未注册客户</p>
     * @param map 查询条件
     * @param pageBounds 翻页信息
     * @return 客户
     * @throws DaoException 异常
     */
    @SuppressWarnings("rawtypes")
    EntityPageBean findRegCustom(Map<String, Object> map, PageBounds pageBounds) throws DaoException;

    /**
     * 
     * <p>Description: 根据id获取客户对象</p>
     * @param id 主键id
     * @return 客户对象
     * @throws DaoException 异常
     */
    TmCustom findCustomerById(String id) throws DaoException;

    /**
     * 
     * <p>Description: 检查待删除客户状态是否合法</p>
     * @param ids id数组
     * @return 检查结果
     * @throws DaoException 异常
     */
    Object checkCustomerStatus(String[] ids) throws DaoException;
}
